package org.xhy.hrm.service;

import com.baomidou.mybatisplus.service.IService;
import org.xhy.hrm.domain.KillCourse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xhy
 * @since 2021-09-29
 */
public interface IKillCourseService extends IService<KillCourse> {

    void add(KillCourse killCourse);

    //定时发布秒杀课程
    void publishKillCourse2Redis();

    KillCourse getOnlineAllKillCourseById(Long id);

    List getOnlineAllKillCourse();

    String kill(Long id);

    void removeKillCourseFromRedis();
}
